package com.whli.autumn.mall.wms.service;

import com.whli.autumn.core.extend.service.IBaseService;
import com.whli.autumn.mall.wms.domain.dto.warehousearea.WarehouseAreaQueryDTO;
import com.whli.autumn.mall.wms.domain.entity.WarehouseArea;
import com.whli.autumn.mall.wms.domain.vo.warehousearea.WarehouseAreaVO;

import java.util.List;

/**
 * <p>库区信息业务</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 08:37
 */
public interface IWarehouseAreaService extends IBaseService<WarehouseArea> {

    /**
     * <p>查询所有启用的库区信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:15
     * @param entity 参数
     * @return
     */
    List<WarehouseAreaVO> listWarehouseArea(WarehouseAreaQueryDTO entity);

    /**
     * <p>启用库区</p>
     *
     * @author whli
     * @since 2023/4/30 21:16
     * @param id 主键
     * @return
     */
    boolean enable(String id);

    /**
     * <p>禁用库区</p>
     *
     * @author whli
     * @since 2023/4/30 21:16
     * @param id 主键
     * @return
     */
    boolean disable(String id);

}
